package chess;

import java.util.concurrent.ConcurrentLinkedQueue;

public class Player {
	private String id;
	private String username;
	private ConcurrentLinkedQueue<IMSG> msgQueue = new ConcurrentLinkedQueue<IMSG>();
	
	public void addMSG(IMSG msg){
		msgQueue.offer(msg);
	}
	public IMSG getMSG(){
		return msgQueue.poll();
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
}
